package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

public interface TokenService {

    //生成Token
    public String generateToken(String userAgent, ItripUser itripUser);
    //保存用户Token
    public void saveToken(String token, ItripUser itripUser);

    public boolean validate(String userAgent, String token);

    public void delete(String token);

    public String reloadToken(String userAgent, String token) throws Exception;
}
